package com.itheima.d5_datastream;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class d6_IntputStreamTest2 {
    public static void main(String[] args) {

        try ( DataInputStream dis = new DataInputStream(new FileInputStream("D:\\Java\\JavaEE_learn\\IO_app2\\src\\itheima10out.txt"))){

            int i = dis.readInt();
            System.out.println(i);


            double v = dis.readDouble();
            System.out.println(v);

            boolean b = dis.readBoolean();
            System.out.println(b);

            String s = dis.readUTF();
            System.out.println(s);

        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }
}
